Page({
  data: {
    list:[false,false,false,false]
  },
  enter:function(e){
     my.navigateTo({
          url:e.currentTarget.id
      })
  },
  open:function(e){
    var list = this.data.list;
    list[e.currentTarget.id] = !list[e.currentTarget.id]
    this.setData({
      list: list
    });
  },
  onShow(){
    my.getNetworkType({
      success: (res) => {
        if(!res.networkAvailable||res.networkType=='UNKNOWN'){
          my.showToast({
            content: '网络状态不佳，请检查网络',
            type:'fail',
            duration: 2000
          })
        }
      }
    })
  }
})
